<?xml version="1.0" encoding="utf-8" ?>
<Feature id="DynamicBizRule" name="Feature to support dynamic loading of business rules">

  <Dependencies>
    <Dependency type="feature">BaseFrameworkFeature.xml</Dependency>
  </Dependencies>

  <Macro name="DynamicBizRuleExpiration">expire after 30 minutes no use</Macro>

  <ClassFactory id="BusinessRules">
    <Class type="Swaf.BizRule.DefaultDynamicRuleRegistration,SwafCore" factoryMethod="createInstance" name="BusinessRule" />
  </ClassFactory>

  <DynamicRuleRegister>
    <LocalClass name="Swaf.BizRule.DefaultDynamicRuleRegistration,SwafCore"	method="defineRule" />
  </DynamicRuleRegister>

  <ApplicationData>
    <Entry name="BusinessRules" nodeType="catalog from $CatalogHome$/BusinessRules" >
      use BusinessRules factory
    </Entry>
  </ApplicationData>

</Feature>